/**
 * Copyright &copy; 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.crawler.entity;

import org.hibernate.validator.constraints.Length;

import com.thinkgem.jeesite.common.persistence.DataEntity;

/**
 * 主题实体
 * @author mj
 * @version 2017-12-25
 */
public class CrawlerTheme extends DataEntity<CrawlerTheme> {
	
	private static final long serialVersionUID = 1L;
	private String name;		// 归类名称
	private String enIdentification;	//主题英文标识
	private Integer sort;		// 排序（越小越靠前）
	
	public CrawlerTheme() {
		super();
	}

	public CrawlerTheme(String id){
		super(id);
	}

	@Length(min=0, max=255, message="归类名称长度必须介于 0 和 255 之间")
	public String getName() {
		return name;
	}

	public void setName(String name) {
		System.out.println(name);
		this.name = name;
	}
	
	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getEnIdentification() {
		return enIdentification;
	}

	public void setEnIdentification(String enIdentification) {
		this.enIdentification = enIdentification;
	}
	
}